

/**
 * @author hanson
 * @version[创立日期，2023/9/12 10:38]
 * @function[功用简介 ]
 **/
class PetCardViewModel {
  // 封面地址
  late final String coverUrl;

  /// 用户头像地址
  late String userImgUrl;

  /// 用户名
  late String userName;

  /// 用户描述
  late String description;

  /// 话题
  late String topic;

  /// 发布时间
  late String publishTime;

  /// 发布内容
  late String publishContent;

  /// 回复数量
  late int replies;

  /// 喜欢数量
  late int likes;

  /// 分享数量
  late int shares;

  PetCardViewModel.fromJson(Map model) {
    coverUrl=model['coverUrl'];
    userName = model['userName'];
    description = model['description'];
    topic = model['topic'];
    replies = model['replies'];
    likes = model['likes'];
    shares = model['shares'];
    publishTime = model['publishTime'];
  }


  PetCardViewModel(
    this.coverUrl,
    this.userImgUrl,
    this.userName,
    this.description,
    this.topic,
    this.publishTime,
    this.publishContent,
    this.replies,
    this.likes,
    this.shares,
  );

}
